package com.hundsun.yr.universal.p2p.ui.fragment;

import android.view.View;

import com.hundsun.mobile.zwgt.R;
import com.hundsun.yr.universal.library.eventbus.EventCenter;
import com.hundsun.yr.universal.library.view.BrowserLayout;
import com.hundsun.yr.universal.p2p.bean.UserInfo;
import com.hundsun.yr.universal.p2p.config.TaskConstants;
import com.hundsun.yr.universal.p2p.ui.activity.base.BaseFragment;
import com.hundsun.yr.universal.p2p.utils.BaseRequestTool2;

import java.util.HashMap;


/**
 * @Title: RechangeZFBFragment.java 
 * @Description: 充值--支付宝充值--支付宝转账
 * @date 2016-1-15 下午3:55:07 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class RechangeZFBFragment extends BaseFragment {
	
	private BrowserLayout mBrowserLayout = null;
	@Override
	protected void onFirstUserVisible() {
		// TODO Auto-generated method stub
		mBrowserLayout = findView(R.id.common_web_zfb_layout);
		//添加请求头
		String zwgt_data = BaseRequestTool2.getFormatedDateString();
		HashMap<String, String> hearder = BaseRequestTool2.getHearder(mContext, TaskConstants.TASK_GET, mContext.getString(R.string.h5_trade) +
				TaskConstants.TASK_ALIPAYRECHARGE, sharedPreferences.getShareProf(UserInfo.USER_NO), sharedPreferences.getShareProf(UserInfo.TOKENID), zwgt_data);

		String url=getString(R.string.root_h5_url_test) + getString(R.string.h5_trade) + TaskConstants.TASK_ALIPAYRECHARGE;
		mBrowserLayout.loadUrl(url,hearder);
		mBrowserLayout.hideBrowserController();
		
	}
	
	@Override
	protected void onUserVisible() {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	protected void onUserInvisible() {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	protected View getLoadingTargetView() {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	protected void initViewsAndEvents() {
		
	}
	
	
	@Override
	protected int getContentViewLayoutID() {
		// TODO Auto-generated method stub
		return R.layout.frag_rechange_zfb;
	}
	
	@Override
	protected void onEveComming(@SuppressWarnings("rawtypes") EventCenter eventCenter) {
		// TODO Auto-generated method stub
	}
	
	@Override
	protected boolean isBindEventBusHere() {
		// TODO Auto-generated method stub
		return false;
	}
	
}